package com.java.appearance;

public class Popcorn {
 
	private static Popcorn instance = null;
	
	private Popcorn(){
		
	}
	
	public static Popcorn getInstance(){
		if(instance == null){
			instance = new Popcorn();
		}
		
		return instance;
	}
	
	public void on(){
		System.out.println("Popcorn on");
	}
	
	public void off(){
		System.out.println("Popcorn off");
	}
	
	public void pop(){
		System.out.println("Popcorn is popping");
	}
}
